c = input(':')
print(float(c)*1.8+32)